package com.fsds.crem.web.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fsds.crem.core.feature.orm.mybatis.Page;
import com.fsds.crem.web.dao.NodeInfoDao;
import com.fsds.crem.web.dao.SaleDailyReportDao;
import com.fsds.crem.web.entity.NodeInfo;
import com.fsds.crem.web.entity.SaleDailyReport;
import com.fsds.crem.web.service.SaleDailyReportService;

@Service("saleDailyReportService")
public class SaleDailyReportServiceImpl implements SaleDailyReportService {

	@Resource
	private SaleDailyReportDao saleDailyReportDao;
	@Resource
	private NodeInfoDao nodeInfoDao;
	
	@Override
	public Page<SaleDailyReport> findByPage(SaleDailyReport saleDailyReport,Page<SaleDailyReport> page) {

		page.setResult(saleDailyReportDao.findByPage(saleDailyReport, page));
		
		return page;
	}

	@Override
	public List<SaleDailyReport> findAllBySearch(SaleDailyReport saleDailyReport) {
		
		return saleDailyReportDao.findAllBySearch(saleDailyReport);
	}

	@Override
	public List<NodeInfo> findNodeList() {
		
		return nodeInfoDao.findAll();
	}

	

	
}
